<?php

       require "../gobal.php";

       $vid=$_GET["vid"];

       $sql="select * from upgrade_device_item where upgrade_device_id=$vid";

       $items = fetch_rows($sql) ;  

       $sql="select * from upgrade_device where id=$vid";

       $devices=fetch_rows($sql);

       $device=$devices[0];

?>

<div class="navbar">
  <div class="navbar-inner">
    <div class="left sliding"><a href="#" class="back link"><i class="icon icon-back"></i></a></div>
    <div class="center sliding">请选择规格参数</div>
   <!-- <div class="right"><a href="/UserCenter" class="link icon-only"><i class="icon icon-user"></i></a></div>  -->
  </div>
</div>
<div class="pages navbar-through">
  <div data-page="upgrade-page" class="page">
    <div class="page-content" style=" padding-bottom:80px; ">

    <div class="selected-device-info color-orange">已选择机型：<span class="selected-device-name"><?php echo $device["name"]; ?></span></div>


      <div class="attr-list">

                <div class="top-level-title">升级内存</div>
                    <div class="sub-level-list">

						     <?php 

                                   foreach($items as $item){

									   echo "<div class='sub-level-item-warp'><div class='sub-level-item' data-id='".$item["id"]."'  data-price='".$item["amount"]."'  >".$item["name"]."</div></div>";

								   }

						   ?>


                        <div class="clear"></div>
                    </div>
		        
<!--
                <div class="top-level-title">升级方式</div>
                    <div class="sub-level-list">
                            <div class="sub-level-item-warp"><div class="sub-level-item" data-price="0" data-id="481">到店/邮寄/上门取回升级</div></div>
                        <div class="clear"></div>
                    </div>
-->
      </div>

    </div>
    <div class="bottom-total-info">升級估价：<span id="total-fix-price" class="color-orange">请选择完整属性</span><div class="button btn-disable btn-confirm-order">确认</div></div>
  </div>
</div>
